import java.util.Map;


public class State {
	public Map<String, Integer> StateInternalProperties;
	
	@Override
	public boolean equals(Object o)
	{
		if (o == null)
			return false;
		
		if (o instanceof State)
		{
			State currentState = (State) o;
			if (this.StateInternalProperties == null)
				return false;
			
			for (String key : this.StateInternalProperties.keySet()) {
				if (currentState.StateInternalProperties.get(key) != this.StateInternalProperties.get(key))
					return false;
			}
		}
		
		return true;
	}
}
